var myModule = angular.module("myModule",[]);

myModule.directive("hello",function () {
   return{
       restrict:"AE",
       scope:{},    // 创建独立scope
       template:"<div><input type='text' ng-model='userName'/> {{userName}} </div>",
       replace:true
   }
});